package com.rboat.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 考试试卷章节对象 exam_test_paper_chapter
 * 
 * @author rboat
 * @date 2019-09-02
 */
public class ExamTestPaperChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 试卷ID:t_exam_test_paper:id */
    @Excel(name = "试卷ID:t_exam_test_paper:id")
    private String testPaperId;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String name;

    /** 章节的描述 */
    @Excel(name = "章节的描述")
    private String comment;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operTime;

    /** 题库id */
    @Excel(name = "题库id")
    private String libraryid;

    /** 问题类型 */
    @Excel(name = "问题类型")
    private String questiontype;

    /** 问题难度 */
    @Excel(name = "问题难度")
    private String questionlevel;

    /** 试题数量 */
    @Excel(name = "试题数量")
    private Integer number;

    /** 每题分值 */
    @Excel(name = "每题分值")
    private Integer score;

    /** 状态（0正常 1:删除） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=:删除")
    private String isDel;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTestPaperId(String testPaperId) 
    {
        this.testPaperId = testPaperId;
    }

    public String getTestPaperId() 
    {
        return testPaperId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }
    public void setLibraryid(String libraryid) 
    {
        this.libraryid = libraryid;
    }

    public String getLibraryid() 
    {
        return libraryid;
    }
    public void setQuestiontype(String questiontype) 
    {
        this.questiontype = questiontype;
    }

    public String getQuestiontype() 
    {
        return questiontype;
    }
    public void setQuestionlevel(String questionlevel) 
    {
        this.questionlevel = questionlevel;
    }

    public String getQuestionlevel() 
    {
        return questionlevel;
    }
    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testPaperId", getTestPaperId())
            .append("name", getName())
            .append("comment", getComment())
            .append("sort", getSort())
            .append("operTime", getOperTime())
            .append("libraryid", getLibraryid())
            .append("questiontype", getQuestiontype())
            .append("questionlevel", getQuestionlevel())
            .append("number", getNumber())
            .append("score", getScore())
            .append("isDel", getIsDel())
            .toString();
    }
}
